import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class medicalmessage {
  medicalmessage({
    this.index,
    this.title,
    this.imageUrl,
    this.Url,
    this.color
  });
  final int index;
  final String title;
  final String imageUrl;
  final String Url;
  final Color color;
  medicalmessage.fromJson(Map json):
  title=json["title"]
  ,imageUrl=json["imageUrl"]
  ,Url=json["Url"]
  ,color=json["color"],
  index=json["index"];
  Map toJson()=>{"title":title,"imageUrl":imageUrl,"Url":Url,"color":color};
  bool selected = false;
}

List<medicalmessage> medicalmessagelist=
    [
      new medicalmessage(index:0,title: "预约挂号",imageUrl: "http://106.12.180.103/smartDemo/images/icon-3c.png",Url: "https://www.dzsbk.cn/smartDemo/page/medicare/yygh_xyy_01.html",color: Colors.blue),
      new medicalmessage(index:1,title: "挂号单",imageUrl: "http://106.12.180.103/smartDemo/images/icon-3c.png",Url: "https://www.dzsbk.cn/smartDemo/page/medicare/ghd_wdyy_01.html",color: Colors.orangeAccent),
      new medicalmessage(index:2,title: "门诊缴费",imageUrl: "http://106.12.180.103/smartDemo/images/icon-3c.png",Url: "https://www.dzsbk.cn/smartDemo/page/medicare/mzjf_01.html",color: Colors.green),
      new medicalmessage(index:3,title: "亲情账号管理",imageUrl: "http://106.12.180.103/smartDemo/images/icon-3c.png",Url: "https://www.dzsbk.cn/smartDemo/page/medicare/qqzhgl_01.html",color: Colors.red),
      new medicalmessage(index:4,title: "检查报告",imageUrl: "http://106.12.180.103/smartDemo/images/icon-3c.png",Url: "https://www.dzsbk.cn/smartDemo/page/medicare/jcbg_01.html",color: Colors.purpleAccent),
      new medicalmessage(index:5,title: "订单查询",imageUrl: "http://106.12.180.103/smartDemo/images/icon-3c.png",Url: "https://www.dzsbk.cn/smartDemo/page/medicare/ddcx_01.html",color: Colors.blue),
      new medicalmessage(index:6,title: "找医院",imageUrl: "http://106.12.180.103/smartDemo/images/icon-3c.png",Url: "https://www.dzsbk.cn/smartDemo/page/medicare/zyy_xlx_01.html",color: Colors.green),
      new medicalmessage(index:7,title: "找药店",imageUrl: "http://106.12.180.103/smartDemo/images/icon-3c.png",Url: "https://www.dzsbk.cn/smartDemo/page/medicare/zyd_xlx_01.html",color: Colors.red),
      new medicalmessage(index:8,title: "药店购药",imageUrl: "http://106.12.180.103/smartDemo/images/icon-3c.png",Url: "https://www.dzsbk.cn/smartDemo/page/medicare/ydgy_01.html",color: Colors.orangeAccent),
    ];